<?php

class ProviderGoodsController extends GoodsController {
	
	public function modelProvider() {
		$id = Yii::app()->adminUser->id;
		return array_merge(parent::modelProvider(), array(
			'criteria' => array(
				'condition' => "provider_id = '{$id}'",
			),			
		));
	}
	
}

?>